<div class="aboutuses form">
<?php echo $this->ExtendedForm->create('PopularPublication', array('class' => 'form-horizontal', 'novalidate' => 'novalidate'));?>
    <fieldset>
    <legend><?php echo __d('admin', 'Add Popular Publication'); ?></legend>
    <div class="form-group row">
        <div class="col-sm-2">
            <label for="language">Language</label>
            <select name="language" id="language" class="form-control">
                <option value="vietnam">VietNam</option>
                <option value="english">English</option>
            </select>
        </div>
    </div>
    <?php
    if(isset($this->request->params['named']['image'])) echo '<div style="display: none;">';
    echo $this->ExtendedForm->input('image', array_merge(array('type' => 'image', 'label' => __d('admin', 'Image (size 217x140)'))));
    if(isset($this->request->params['named']['image'])) echo '</div>';
    
    if(isset($this->request->params['named']['link'])) echo '<div style="display: none;">';
    echo $this->ExtendedForm->input('link', array_merge(array('label' => __d('admin', 'Link'))));
    if(isset($this->request->params['named']['link'])) echo '</div>';
    ?>
    <div class="area-language" id="text-vietnam">
	<?php
		if(isset($this->request->params['named']['title'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title', array_merge(array('label' => __d('admin', 'Title'))));
		if(isset($this->request->params['named']['title'])) echo '</div>';

		if(isset($this->request->params['named']['short_des'])) echo '<div style="display: none;">';
		echo $this->Form->input('PopularPublication.short_des', array_merge(array('type' => 'textarea', 'label' => __d('admin', 'Short Des En'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['short_des'])) echo '</div>';
	?>
    </div>
    <div class="area-language" id="text-english" style="display:none">
    <?php
		if(isset($this->request->params['named']['title_en'])) echo '<div style="display: none;">';
		echo $this->ExtendedForm->input('title_en', array_merge(array('label' => __d('admin', 'Title En'))));
		if(isset($this->request->params['named']['title_en'])) echo '</div>';

		if(isset($this->request->params['named']['short_des_en'])) echo '<div style="display: none;">';
		echo $this->Form->input('PopularPublication.short_des_en', array_merge(array('type' => 'textarea', 'label' => __d('admin', 'Short Des En'), 'class' => 'form-control', 'div' => 'form-group row', 'before' => '<div class="col-sm-10">', 'after' => '</div>')));
		if(isset($this->request->params['named']['short_des_en'])) echo '</div>';
	?>
    </div>
    </fieldset>
<?php echo $this->ExtendedForm->end(array('label' => __d('admin', 'Save PopularPublication'), 'class' => 'btn btn-primary', 'div' => false, 'before' => '<div class="control-group"><div class="controls">', 'after' => "\n" . $this->Html->link(__d('admin', 'Cancel'), $redirectUrl, array('class' => 'btn btn-default')) . '</div></div>'));?>
</div>